#!/usr/bin/expect -f

spawn /opt/etcloud/apn_server/bin/make_pem.sh [lindex $argv 0] [lindex $argv 1] [lindex $argv 2] [lindex $argv 3]
expect "Password" 
send "\n" 
expect eof 
exit 
